home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / grob.for < prev    next >
Text File  |  1995-03-23  |  2KB  |  67 lines

  1. Article 1653 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!pur-ee!mentor.cc.purdue.edu!purdue!tut.cis.ohio-state.edu!ucbvax!INDYVAX.BITNET!IUGC500
  3. From: IUGC500@INDYVAX.BITNET
  4. Newsgroups: comp.sys.handhelds
  5. Subject: Grob format's
  6. Message-ID: <9003281622.AA15446@hercules.csl.sri.com>
  7. Date: 28 Mar 90 16:22:00 GMT
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: inet
  10. Organization: The Internet
  11. Lines: 52
  12.  
  13. Okay, for those of you with 48sx's, and are curious....
  14. This is what i've figured out about the format of GROB's
  15.  
  16. An example would probably be the easiest.
  17.  
  18. say you've got a
  19. Graphic 7 x 3 that looks (internally) - > GROB 7 3 B2B2B2
  20.  
  21. it looks on the screen (1=pixels on, 0=pixels off)
  22. 1101010
  23. 1101010
  24. 1101010
  25.                 (yes, I know its a dumb object but it serves my point)
  26.  
  27. the GROB's are padded with zero bits untill they are a even multiple of 8
  28. so that it comes out to be a even byte, so that each line gets at least
  29. one complete byte.
  30.  
  31. now when they're put on the screen, they're not treated as bytes, but as
  32. 4 bit nybbles, with the LSB on the left, and MSB to the right (similar
  33. to the way Apple //'s did they're display memory)
  34.  
  35. so that one line of our graphic object (in binary is)
  36. 10110010
  37. if you grab the first four bits, turn them around, and display them, and
  38. continue to the next four it works out ie.
  39. 1  0  1  1  0  0  1  0
  40. |  |  |  |  |  |  |  |
  41. |  |  |  |  |  |  |  --- Bit #5
  42. |  |  |  |  |  |  ------ Bit #6
  43. |  |  |  |  |  --------- Bit #7 (right most display'd bit)
  44. |  |  |  |  ------------ Padded Zero Bit
  45. |  |  |  --------------- Bit #1 (left most display'd bit)
  46. |  |  ------------------ Bit #2
  47. |  --------------------- Bit #3
  48. ------------------------ Bit #4
  49.  
  50. I think this explains them well enough that you should be able to convert
  51. 28S LCD screens to 48SX GROB's.
  52.  
  53. For those of you who don't know, 28S lcd screens are created by taking
  54. a vertical column of 8 dots, converting it into a binary # with
  55. LSB at top, and MSB at bottom, and then converting the #, into its character
  56. equivilent. (ie convert binary to decimal and then use the CHR function)
  57.  
  58. I'm also going to post this to comp.sys.handhelds to.....
  59.  
  60. Hope this explains them a bit
  61. David Holland
  62. IUGC500@INDYVAX.BITNET
  63.  
  64. PS- this could be slightly messed up, bit it seems to work.
  65.  
  66.  
  67.